package cn.edu.cug.cs.gtl.renders.openinventor.meshes;

import cn.edu.cug.cs.gtl.apis.render.basics.Box2f;
import cn.edu.cug.cs.gtl.apis.render.meshes.Mesh2D;
import cn.edu.cug.cs.gtl.renders.openinventor.basics.Box2fImpl;
import com.openinventor.meshviz.data.PbMesh;
import com.openinventor.meshviz.data.PbMesh2D;

public class Mesh2DImpl extends MeshImpl implements Mesh2D {
    public Mesh2DImpl(PbMesh v) {
        super(v);
    }

    @Override
    public Box2f getBoundingBox2D() {
        return new Box2fImpl(((PbMesh2D)getNativeObject()).get2DBoundingBox());
    }
}
